window.onload = function(){
  var search = document.querySelector(".search");
  var input = document.querySelector(".input");
  var flag = false
  search.addEventListener('click',function(){
    if(!flag){
      input.classList.add('active')
      flag = !flag
    }else{
      input.classList.remove('active')
      flag = !flag
    }
    
  })
}